package com.chuangjiangx.member.manager.web.web.basic.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @Auther: YZJ
 * @Date: 2018/8/28 16:56
 * @Description:修改会员卡配置对象
 */
@ApiModel
@Getter
@Setter
public class ModifyMbrConfigRequest {
    /**
     * 会员卡基础信息id
     */
    @ApiModelProperty(value = "会员卡基础信息id", name = "cardCoverChoice", required = true)
    @NotNull(message = "{member.id.null}")
    private Long mbrConfigId;
    /**
     * 会员卡背景色（1微信平台背景色，2自定义图片）
     */
    @ApiModelProperty(value = "会员卡背景色（1微信平台背景色，2自定义图片）", name = "cardCoverChoice", required = true)
    @NotNull(message = "{cardCoverChoice.null}")
    private Integer cardCoverChoice;

    /**
     * 选择微信平台背景色时，传入色号
     */
    @ApiModelProperty(value = "选取微信平台背景色时，传入色号", name = "cardColour")
    private String cardColour;

    /**
     * 选择自定义图片时，传入图片URL
     */
    @ApiModelProperty(value = "选择自定义图片时，传入图片URL", name = "cardPicture")
    private String cardPicture;

    /**
     * 会员卡名称
     */
    @ApiModelProperty(value = "会员卡名称", name = "cardName")
    @NotNull
    @Length(min = 0,max = 9,message = "{cardName.limit}")
    private String cardName;

    /**
     * 联系电话
     */
    @ApiModelProperty(value = "联系电话", name = "contactNumber")
    private String contactNumber;

    /**
     * 会员卡特权说明
     */
    @ApiModelProperty(value = "会员卡特权说明", name = "cardPrivilegeExplain", required = true)
    @NotNull(message = "{cardPrivilegeExplain.null}")
    private String cardPrivilegeExplain;

    /**
     * 会员卡使用须知
     */
    @ApiModelProperty(value = "会员卡使用须知", name = "cardUseNotice")
    private String cardUseNotice;

    /**
     * 赠送积分数量
     */
    @ApiModelProperty(value = "赠送积分数量", name = "giftScore")
    private String giftScore;

    /**
     * 赠送卡券号
     */
    @ApiModelProperty(value = "赠送卡券号", name = "giftCouponNumber")
    private String giftCouponNumber;
}
